package com.dja.nzw.mq.rabbit.listener;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;

/**
 * Created by shuyun on 2016/8/9.
 */
public class SimpleMessageListener implements MessageListener {
    @Override
    public void onMessage(Message message) {
        String messageBody = new String(message.getBody());
        System.out.println(messageBody);
    }
}
